package com.example.graduation.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.example.graduation.entity.Hot;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 * 服务类
 * </p>
 *
 * @author xyc
 * @since 2022-02-11
 */
public interface HotService extends IService<Hot> {

    /**
     * 更新或者插入热搜
     *
     * @param goodsId
     * @param goodsName
     */
    public void updateHot(Integer goodsId, String goodsName);


    /**
     * 查找出热搜热度最该的个商品列表
     *
     * @return
     */
    public Page<Hot> searchHotList();
}
